function ToolView(param) {
	var self = Ti.UI.createWindow({
		title : param.detailTitle,
		//title:_args.title,
		backgroundColor:'#fff'
	});

var knowledgeArea = param.knowledge;
	knowledgeArea = knowledgeArea.replace(/\s+/g,"");
	knowledgeArea[0] = knowledgeArea[0].toLowerCase();
		
		var toolsObject = {
		"PlanScheduleManagement" : {
		"tools" : ['Expert Judgment: this is guided by historical information and provides valuable insights about the environment and information from prior similar projects.  It can also suggest if to combine methods and how to reconcile differences between them.',
		'Analytical Techniques:  this may involve choosing strategic options to estimate and schedule the project and may also detail ways to fast track or crash the project schedule.'
		]
		}
		,
	"DefineActivities" : { "tools" :[
	'Decomposition: is used in dividing and subdividing project scope and deliverables into smaller manageable part.',
		'Rolling Wave Planning: is an iterative technique which work to be accomplished in the near term is planned in detail and future work planned at higher level.',
		'Expert Judgment: is expert advice from project team or other experts with experience and skills in developing detailed project scope statements, WBS, and schedule.'
	]},
	"SequenceActivities" : {
		"tools" : ['Precedence Diagramming Method: is used for constructing schedule model in which activities are represented by nodes and are graphically linked by one or more logical relationships to show the sequence in which the activities are to be performed.  It has four types of dependencies (logical relationship).  These activities are finish-to-start, finish-to-finish, start-to-start, and start-to-finish.',
		'Dependency Determination: can be characterized as mandatory or discretionary, and internal or external.',
		'Leads and Lags: affects the timing of activities and thereby the critical path.  Lead is defined as the amount of time that a successor activity can be advanced with respect to a predecessor activity.  It is normally represented as a negative value for lag in scheduling software.  A lag is defined as the amount of time a successor activity will be delayed with respect to a predecessor activity.'
		]},
	"EstimateActivityResources" :{
		"tools" : [
		'Expert Judgment: opinion provided by a group or person with expertise in resource planning and estimation.',
		'Published Estimate Data: ',
		'Bottom-up Estimating: is a method for estimating project duration or cost by aggregating the estimates of the lower-level components of the WBS.',
		'Project Management Software: scheduling software tools such as Microsoft Project, which helps plan, organize and manage resource pools and develop resource estimates.'
	]},
	"EstimateActivityDuration" :{
		"tools" : [
		'Expert Judgment: based on SME experiences, guided by historical information can provide duration estimates or recommended maximum activity duration from prior similar projects.  It can also be used to determine whether to combine methods of estimating and how to reconcile differences between them.',
		'Analogous Estimating: uses historical data from a similar activity or project to estimate project duration or cost of an activity/project.',
		'Parametric Estimating: uses algorithm to calculate cost or duration based on historical data and project parameters.  It uses statistical relationship between historical data and other variables to calculate and estimate for activity parameters such as cost, budget, and duration.',
		'Three-Point Estimating: originates from Program Evaluation and Review Technique (PERT) it uses three estimates (Most likely, Optimistic, Pessimistic) to define an approximate range for an activity duration.',
		'Group Decision-Making Techniques: a team based approach like brainstorming, Delphi or nominal group techniques.',
		'Reserve Analysis: involves review project management plan to ascertain the risks which mandate a reserve for mitigation and accordingly estimate the reserve.'
	]},
	"DevelopSchedule" :{
		"tools" : [
		'Schedule Network Analysis:  generates the project schedule model.  It uses various analytical techniques such as critical path method, critical chain method, what-if analysis, and resource optimization techniques to calculate the early and late start and finish dates for uncompleted portions of project activities.',
		'Critical Path Method: used to estimate the minimum project duration and determine the amount of scheduling flexibility on the logical network paths within the schedule model.',
		'Critical Chain Method: allows project team to place buffers on any schedule path to account for limited resources and project uncertainties. It is developed from the critical path method approach and considers the effect of resource allocation, resource optimization, resource leveling, and activity duration uncertainty of the critical path determined using the critical path method.',
		'Resource Optimization Techniques:  includes resource leveling and resource smoothing',
		'Modeling Techniques: includes what-if scenario analysis and simulation',
		'Leads and Lags: affects the timing of activities and thereby the critical path.  Lead is defined as the amount of time that a successor activity can be advanced with respect to a predecessor activity.  It is normally represented as a negative value for lag in scheduling software.  A lag is defined as the amount of time a successor activity will be delayed with respect to a predecessor activity.',
		'Schedule Compression:  used to shorten the schedule duration without reducing the project scope in order to meet schedule constraints, imposed dates, or other schedule objectives.  It includes crashing, and fast tracking.',
		'Scheduling Tool'
	]},
		"ControlSchedule" :{
		"tools" : [
		'Performance Reviews: measures, compares, and analyzes schedule performance such as actual start and finish dates, percent complete, and remaining duration for work in progress.  Available techniques include trend analysis, critical path method, critical chain method, earned value management',
		'Project Management Software:  provides the ability to rack planned dates versus actual dates to report variances to and progress made against the schedule baseline, and forecasts the effects of changes to the project schedule model.',
		'Resource Optimization Techniques:  includes resource leveling and resource smoothing',
		'Modeling Techniques: includes what-if scenario analysis and simulation',
		'Leads and Lags: affects the timing of activities and thereby the critical path.  Lead is defined as the amount of time that a successor activity can be advanced with respect to a predecessor activity.  It is normally represented as a negative value for lag in scheduling software.  A lag is defined as the amount of time a successor activity will be delayed with respect to a predecessor activity.',
		'Schedule Compression:  used to shorten the schedule duration without reducing the project scope in order to meet schedule constraints, imposed dates, or other schedule objectives.  It includes crashing, and fast tracking.',
		'Scheduling Tool: '
	]}
	
	};

	var scrollView = Titanium.UI.createScrollableView({
		
	
		views:[],
		showPagingControl:true,
		pagingControlHeight:30,
		maxZoomScale:2.0,
		currentPage:0
	});
	

	var views_= {};
	var labels = {};
	for(var o = 0; o < toolsObject[knowledgeArea].tools.length; o++){
	
	views_['view' + o] = Ti.UI.createView({
		backgroundColor:'black'
	});
	labels['l'+o] = Ti.UI.createLabel({
		text:toolsObject[knowledgeArea].tools[o],
		color:'#fff',
		width:'auto',
		height:'auto'
	});
	views_['view' + o].add(labels['l' + o]);
	
	scrollView.addView(views_['view'+o]);
	}

	// add table view to the window
	self.add(scrollView);
	return self;
};

module.exports = ToolView;
